Smush\Core\Media\Media_Item D

Total Complexity 197
Dependencies 9
Dependents 14
Total lines 1,117
Lines of code 661
Logical lines of code 309
Comment lines 212
Methods 104
Properties 26

Methods 104

Method Rating Maintainability Complexity Lines of code
prepare_errors()
A
47 9 37
make_attachment_meta()
S
50 6 28
prepare_sizes()
S
55 5 21
update_transparent_meta()
S
63 5 11
prepare_full_size()
S
53 4 24
arrays_same()
S
64 4 10
backup_file_exists()
S
69 3 7
is_animated()
S
66 3 9
update_animated_meta()
S
72 3 5
size_limit_exceeded()
S
68 3 8
is_transparent()
S
66 3 9
get_array_value()
S
73 3 5
prepare_smushable_sizes()
S
66 3 9
get_missing_file_name()
S
67 3 8
prepare_scaled_size()
S
66 3 8
files_exist()
S
67 3 8
update_ignored_meta()
S
64 3 10
get_file_name_exceeding_limit()
S
68 3 8
has_wp_metadata()
S
70 3 6
update_backup_sizes()
S
65 3 9
save()
S
63 2 12
update_attached_file()
S
68 2 7
remove_backup_size()
S
67 2 8
set_animated()
S
67 2 8
is_png()
S
75 2 4
set_outdated()
S
71 2 6
is_outdated()
S
74 2 4
get_full_or_scaled_size()
S
74 2 5
set_transparent()
S
67 2 8
get_scaled_or_full_size()
S
74 2 5
prepare_backup_sizes()
S
64 2 10
get_backup_sizes_meta()
S
75 2 4
get_attached_file()
S
71 2 6
get_backup_sizes()
S
72 2 6
get_post()
S
71 2 6
get_mime_type()
S
72 2 6
update_post_mime_type()
S
65 2 10
get_original_image_path()
S
71 2 6
is_ignored()
S
72 2 6
get_registered_wp_sizes()
S
72 2 6
reset()
S
74 2 5
get_errors()
S
72 2 6
__construct()
S
64 2 10
get_wp_metadata()
S
72 2 6
get_wp_metadata_size()
S
71 2 6
get_sizes()
S
72 2 6
update_wp_metadata()
S
70 2 6
original_image_exists()
S
70 2 6
get_missing_sizes()
S
71 2 6
get_edit_link()
S
72 2 6
get_smushable_sizes()
S
72 2 6
get_wp_metadata_sizes()
S
71 2 6
is_skipped()
S
77 2 4
is_mime_type_supported()
S
72 2 6
get_relative_file_dir()
S
69 2 7
is_image()
S
72 2 6
get_relative_file_path()
S
72 2 6
prepare_relative_file_path()
S
68 2 7
get_default_backup_size()
S
80 1 3
prepare_edit_link()
S
82 1 3
file_name_from_path()
S
80 1 3
set_backup_sizes()
S
76 1 4
fetch_wp_metadata()
S
76 1 4
is_smushable_filter()
S
78 1 3
remove_default_backup_size()
S
81 1 3
add_backup_size()
S
65 1 9
make_backup_sizes_meta()
S
74 1 5
get_backup_size()
S
79 1 3
set_registered_wp_sizes()
S
81 1 3
has_missing_sizes()
S
80 1 3
get_id()
S
82 1 3
get_size_urls()
S
74 1 5
get_size_paths()
S
74 1 5
get_human_size_limit()
S
80 1 3
get_size_limit()
S
82 1 3
set_size_limit()
S
81 1 3
get_post_meta()
S
79 1 3
get_base_url()
S
70 1 6
get_registered_wp_size()
S
79 1 3
get_full_size()
S
80 1 3
prepare_ignored()
S
80 1 3
set_ignored()
S
76 1 4
smush_image_filter()
S
79 1 3
check_is_mime_type_supported()
S
72 1 5
has_smushable_sizes()
S
80 1 3
transparent_meta_exists()
S
76 1 4
is_valid()
S
80 1 3
has_animated_mime_type()
S
79 1 3
get_main_size()
S
81 1 3
set_settings()
S
81 1 3
fetch_post_mime_type()
S
81 1 3
has_size()
S
75 1 4
set_mime_type()
S
81 1 3
get_scaled_size()
S
80 1 3
get_size()
S
79 1 3
has_full_size()
S
80 1 3
has_scaled_size()
S
80 1 3
has_errors()
S
81 1 3
file_path_has_scaled_postfix()
S
78 1 3
get_dir()
S
70 1 6
check_is_image()
S
80 1 3
attachment_metadata_as_size_metadata()
S
67 1 9
initialize_size()
S
65 1 10
animated_meta_exists()
S
76 1 4